package appapi.dao;

import appapi.entity.mqtt.Appuser;
import appapi.entity.mqtt.Areapath;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: Ygp Work
 * @description:
 * @date: 2023-07-07 11:01
 */
@Mapper
public interface AppuserMapper {
    @Insert("INSERT INTO appuser (phone, auth, address) " +
            "VALUES ( #{phone}, #{auth}, #{address})")
    void insertAppuser(Appuser appuser);

    @Select("select  * from appuser")
    List<Appuser> getAll();
}
